if (!(navigator.userAgent.match(
		/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
	))) {
	$(".aui-flexView").css({
		"width": '600px',
		"boxShadow": '0px 0px 0px 1px #CACDD1,0px 0px 0px 8px #F1F3F4,0px 0px 4px 8px #333'
	});
}


//相关帮助
var bangzhuList = [
	[{
		name: '安装说明',
		img: 'images/gongneng/anzhuang.jpg',
		url: 'https://mp.weixin.qq.com/s/iVMYYwZTEbm8H1PbQcQuew'
	}, {
		name: '代码教程',
		img: 'images/gongneng/xianyu.jpg',
		url: 'https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=2020709296379953155#wechat_redirect'
	}, {
		name: '联机相关',
		img: 'images/gongneng/lianji.jpg',
		url: 'https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=2491052809250160642#wechat_redirect'
	}, {
		name: '虚拟偶像',
		img: 'images/gongneng/xiaowu.jpg',
		url: 'https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=1872127132684877825#wechat_redirect'
	}, {
		name: '快捷网杀',
		img: 'images/gongneng/qita.jpg',
		url: 'https://mp.weixin.qq.com/s/PRtR4AAFFZM7WfNeE2pgGw'
	}, {
		name: '皮肤分享',
		img: 'images/gongneng/pifu.jpg',
		url: 'https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=2105202069098889217#wechat_redirect'
	}, {
		name: '视频合集',
		img: 'images/gongneng/shipin.jpg',
		url: 'https://mp.weixin.qq.com/mp/appmsgalbum?action=getalbum&album_id=1339828940294225922&__biz=MzUwOTMwMjExNQ==#wechat_redirect'
	}, {
		name: '发文说明',
		img: 'images/gongneng/wenzhang.jpg',
		url: 'wenzhang/1.html'
	}],
	[{
		name: '三国杀移动版',
		img: 'images/gongneng/g1.png',
		url: 'https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=2979093185509736449#wechat_redirect'
	}, {
		name: '三国杀OL',
		img: 'images/gongneng/g2.png',
		url: 'https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=2811412532086456321#wechat_redirect'
	}, {
		name: '三国杀十周年',
		img: 'images/gongneng/g3.png',
		url: 'https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=2811409993542680578#wechat_redirect'
	}, {
		name: '欢乐三国杀',
		img: 'images/gongneng/g4.png',
		url: 'https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=2811414093927825409#wechat_redirect'
	}, {
		name: '极略三国',
		img: 'images/gongneng/g5.png',
		url: 'https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=2811407617234583553#wechat_redirect'
	}, {
		name: '英雄杀',
		img: 'images/gongneng/g6.png',
		url: 'https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=2811415474709479424#wechat_redirect'
	}, {
		name: '英雄杀小程序',
		img: 'images/gongneng/g7.png',
		url: 'https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=2979095305730408450#wechat_redirect'
	}, {
		name: '三国杀小程序',
		img: 'images/gongneng/g8.png',
		url: 'https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=2979095933265395718#wechat_redirect'
	}]
]

var sliderWrapper = document.getElementsByClassName('slider-wrapper')[0]
for (var i = 0; i < bangzhuList.length; i++) {
	var div = document.createElement("div")
	div.setAttribute('class', 'slider-item')
	var div2 = document.createElement("div")
	div2.setAttribute('class', 'aui-palace aui-palace-four clearfix')

	var bangzhuListChild = bangzhuList[i]
	for (var d = 0; d < bangzhuListChild.length; d++) {
		var a = document.createElement("div")
		a.innerHTML =
			'<a href="' + bangzhuListChild[d].url +
			'" class="aui-palace-grid"><div class="aui-palace-grid-icon"><img src="' +
			bangzhuListChild[d].img + '" alt=""></div><div class="aui-palace-grid-text"><h2>' +
			bangzhuListChild[d].name + '</h2></div></a>'

		div2.appendChild(a)
	}
	div.appendChild(div2)
	sliderWrapper.appendChild(div)
}


//轮播图
var mainimgList = [{
		img: "./images/lunbotu/bg9.jpg",
		url: "https://mp.weixin.qq.com/s/1OWnMUbwyIlpTK-ohUp4OA",
	}, {
		img: "./images/lunbotu/bg8.jpg",
		url: "https://mp.weixin.qq.com/s/p3-MgEeg0go93XIEKdrmUg",
	}, {
		img: "./images/lunbotu/bg7.jpg",
		url: "https://mp.weixin.qq.com/s/JUA2wlt7na5E8patuAPpww",
	}, {
		img: "./images/lunbotu/bg6.jpg",
		url: "https://mp.weixin.qq.com/s/HX0oXcfX9UAZ26UHzJxYew",
	}, {
		img: "./images/lunbotu/bg5.jpg",
		url: "https://mp.weixin.qq.com/s/HAvtR4tkjV8ZX2akXMoxyg",
	}, {
		img: "./images/lunbotu/bg3.jpg",
		url: "https://mp.weixin.qq.com/s/oGe41zpGN_xLjUmDl6VKVA",
	}, {
		img: "./images/lunbotu/bg2.jpg",
		url: "https://mp.weixin.qq.com/s/VWOmHaeqJLQmD_Rez6HfkQ",
	},
	{
		img: "./images/lunbotu/bg1.jpg",
		url: "http://mp.weixin.qq.com/mp/homepage?__biz=MzUwOTMwMjExNQ==&hid=5&sn=b5844538f6f0a49eb2423a900f19d888&scene=18#wechat_redirect", //javascript:;
	}
]

var mainimg = document.getElementsByClassName('main_img')[0]
var imgfont = document.getElementsByClassName('img_font')[0]
for (var i = 0; i < mainimgList.length; i++) {
	mainimg.innerHTML += "<li><a href=" + mainimgList[i].url + "><img style='width: 100%;height:13rem;' src=" +
		mainimgList[i].img + " alt=''></a></li>"
	imgfont.innerHTML += '<span>' + (Number(i) + 1) + '/' + mainimgList.length + '</span>'
}


// 轮播推荐消息
var newsList = [{
		name: "来自群友乔妹（乔）的投稿，武将没什么特色，就是特色",
		url: "https://mp.weixin.qq.com/s/cVrxkXtuAnIbVdon-JQ1eQ"
	},
	{
		name: "新手游玩建议无脑加点力量，杀就完事了",
		url: "https://mp.weixin.qq.com/s/gcdDn3OR2CDsI_b6a5YzEw"
	},
	{
		name: "《无名杀》新模式『五行决』（三国杀&炉石&万智）",
		url: "https://mp.weixin.qq.com/s/prNmyzp12y3ytx8GwFRK6Q"
	},
	{
		name: "新增成就系统，让你的游戏体验更加多样",
		url: "https://mp.weixin.qq.com/s/T7UyG1sSufk2bgoct6MhMw"
	},
	{
		name: "《极略》扩展SK神大乔，SK文鸯，SK严颜，SK诸葛瞻",
		url: "https://mp.weixin.qq.com/s/y4KUDcdf1Z8qwaCAgQ6YVg"
	}
]
var newsLi = document.getElementsByClassName('news_li')[0]
for (var i = 0; i < newsList.length; i++) {
	newsLi.innerHTML += "<li><a href=" + newsList[i].url + ">" + newsList[i].name + "</a></li>"
}


// 推荐QQ群
var qqList = [{
		name: "裂鼎",
		url: "http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=l943330ozSBg2cFXtQRJ-xpDzedeXxad&authKey=QZRfWg5lSu0fyMpHvVgf6yCtPZ4vBr6uTldA8tCjpN6ogdCloBavm8%2Fa232203r9&noverify=0&group_code=717842542",
		img: "images/qun/lieding.jpg",
		renshu: "259",
		qunhao: "717842542"
	}, {
		name: "英雄杀爱好者游戏交流",
		url: "http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=KopSkxCgGO7HpvSkUFJ8a0LczTr6PxvT&authKey=SZqb%2BOY%2FpNsvbHr6WPNZ%2F26tBRcvZxUTHXmtFpn%2BCt65sX78CwIh9YbQp%2FIA%2FAYk&noverify=0&group_code=695062813",
		img: "images/qun/yingxiong.jpg",
		renshu: "490",
		qunhao: "695062813"
	}, {
		name: "钫酸酱的无名杀交流群",
		url: "http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=pGpt8jriwBd5mDLUevbEXpfmOzaDaaTP&authKey=5uSYuWJUifr9tmP4rxfiVSKj4eNn0tNfClzAYyJQMiBJQ4iosbeexa%2Bsx2agSYdE&noverify=0&group_code=556343851",
		img: "images/qun/jing.jpg",
		renshu: "410",
		qunhao: "556343851"
	}, {
		name: "无名杀极略",
		url: "https://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=wtIyrzUP7K2wqEksQvuOQOUnu6FCsNGt&authKey=F2LVaWOSh%2F6gBWjT2FNz7uvHF7kjlEA3OLEnJKr8%2B6yPzeZ8yX3zmUyzGoWkpO3V&noverify=0&group_code=392224094",
		img: "images/qun/jilue.jpg",
		renshu: "1866",
		qunhao: "392224094"
	}, {
		name: "无名杀《第叁幻界》交",
		url: "https://jq.qq.com/?_wv=1027&k=iYBrLaaO",
		img: "images/qun/8.jpg",
		renshu: "410",
		qunhao: "178323816"
	}, {
		name: "无名杀将灵扩展发布群",
		url: "https://jq.qq.com/?_wv=1027&k=hbxWFDe3",
		img: "images/qun/7.jpg",
		renshu: "1132",
		qunhao: "738357530"
	}, {
		name: "方舟：天灾...",
		url: "https://jq.qq.com/?_wv=1027&k=0Bdj5Mt8",
		img: "images/qun/6.jpg",
		renshu: "498",
		qunhao: "926335239"
	},
	{
		name: "无名杀技能...",
		url: "https://jq.qq.com/?_wv=1027&k=314IxwYS",
		img: "images/qun/5.jpg",
		renshu: "342",
		qunhao: "643876193"
	},
	{
		name: "无名杀特效测...",
		url: "https://jq.qq.com/?_wv=1027&k=du4ua9hE",
		img: "images/qun/2.jpg",
		renshu: "1883",
		qunhao: "288155120"
	},
	{
		name: "無名殺官方群Ⅰ",
		url: "https://jq.qq.com/?_wv=1027&k=zDIx5seq",
		img: "images/qun/noname.jpg",
		renshu: "2000",
		qunhao: "335438250"
	},
	{
		name: "无名杀官方群Ⅱ",
		url: "https://jq.qq.com/?_wv=1027&k=Pdk1cRAv",
		img: "images/qun/noname2.jpg",
		renshu: "2000",
		qunhao: "348943983"
	},
	{
		name: "无名杀官方群Ⅲ",
		url: "https://jq.qq.com/?_wv=1027&k=FUjuVEj5",
		img: "images/qun/noname3.jpg",
		renshu: "1999",
		qunhao: "459406548"
	},
	{
		name: "无名杀官方群Ⅷ",
		url: "https://jq.qq.com/?_wv=1027&k=vBGutFiU",
		img: "images/qun/noname8.jpg",
		renshu: "1946",
		qunhao: "1038572358"
	},
	{
		name: "无名杀隐士群",
		url: "https://jq.qq.com/?_wv=1027&k=VH4hX5VX",
		img: "images/qun/noname.jpg",
		renshu: "1891",
		qunhao: "784051469"
	},
	{
		name: "十周年UI（手...",
		url: "https://jq.qq.com/?_wv=1027&k=QGTOZ0id",
		img: "images/qun/ui.jpg",
		renshu: "1931",
		qunhao: "421537580"
	},
	{
		name: "无名杀玄武...",
		url: "https://jq.qq.com/?_wv=1027&k=b0cBTIdn",
		img: "images/qun/xw.jpg",
		renshu: "1774",
		qunhao: "522136249"
	},
	{
		name: "无名杀金庸...",
		url: "https://jq.qq.com/?_wv=1027&k=3oIvkguA",
		img: "images/qun/jy.jpg",
		renshu: "1798",
		qunhao: "697310426"
	},
	{
		name: "无名杀–秦时...",
		url: "https://jq.qq.com/?_wv=1027&k=Es1Spigs",
		img: "images/qun/qinshi.jpg",
		renshu: "249",
		qunhao: "616483541"
	}
]
var qq = document.getElementsByClassName("aui-slide-item-list")[0]
for (var i = 0; i < qqList.length; i++) {
	qq.innerHTML += '<li class="aui-slide-item-item"><a href=' + qqList[i].url + ' class="aui-link"><img src=' +
		qqList[i].img + ' alt=""></a><div class="aui-good-content"><h3>' + qqList[i].name + '</h3><p>' + qqList[i]
		.renshu + '人</p><span>群号:' + qqList[i].qunhao + '</span></div></li>'
}


// 热门扩展
var auiPatternList = [{
		name: "炉石普通",
		url: "https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=2949697088617955331#wechat_redirect"
	},
	{
		name: "玄武江湖",
		url: "https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=1712682190653718529#wechat_redirect"
	},
	{
		name: "十周年ui",
		url: "https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=2171834109554229250#wechat_redirect"
	}, {
		name: "RE：英雄杀",
		url: "https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=2171841663814500356#wechat_redirect"
	},
	{
		name: "千幻聆音",
		url: "https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=2171840466793693185#wechat_redirect"
	},
	{
		name: "福瑞拓展",
		url: "https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=2826592095296831491#wechat_redirect"
	},
	{
		name: "特效测试",
		url: "https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=2171843384468996104#wechat_redirect"
	},
	{
		name: "极略自用",
		url: "https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=2171847276984434690#wechat_redirect"
	},
	{
		name: "阳光包",
		url: "https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=2295896772973707267#wechat_redirect"
	},
	{
		name: "第叁幻界",
		url: "https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=2555378094476640257#wechat_redirect"
	},
	{
		name: "血色衣冠",
		url: "https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=2286328416360710150#wechat_redirect"
	},
	{
		name: "时空枢纽",
		url: "https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUwOTMwMjExNQ==&action=getalbum&album_id=2171838814690902017#wechat_redirect"
	}
]
var auiPattern = document.getElementsByClassName('aui-pattern')[0]
for (var j = 0; j < auiPatternList.length; j++) {
	auiPattern.innerHTML += "<a href=" + auiPatternList[j].url + ">" + auiPatternList[j].name + "</a>"
}


// 文章/通知
var wenzhangList = [{
	title: '无名杀GPL协议补充说明',
	text: '无名杀创始人"水乎"，对GPL协议的补充说明（及无名杀相关规定）',
	name: "诗笺",
	img: 'images/wenzhang/shuihu.jpg',
	url: "./wenzhang/4.html",
	jingpin: true
}, {
	title: '无名杀Bug反馈帖',
	text: '更新者只在贴吧接受Bug反馈，其他网友自建组织，均不接受Bug反馈。',
	name: "苏婆玛丽奥",
	img: 'images/wenzhang/update.jpg',
	url: "./wenzhang/3.html",
	jingpin: true
}, {
	title: '警惕贩卖无名杀',
	text: '无名杀发生多起贩卖事件，以免费破解三国杀，奶杀等贩卖。',
	name: "无名杀扩展交流",
	img: 'images/wenzhang/kuozhan.jpg',
	url: "wenzhang/2.html"
}, {
	title: '关于协议执行，及官方问题',
	text: '关于协议一事，规矩在那，遵守不遵守看个人，没必要纠结，更没必要争论...',
	name: "呲牙哥",
	img: 'images/wenzhang/ciya.jpg',
	url: "wenzhang/5.html"
}, {
	title: '对《无名杀》贴吧问题解答',
	text: 'GPL协议让扩展作者只能当“黑奴”，无偿贡献自己的代码，是吗？',
	name: "寰宇星城",
	img: 'images/wenzhang/xingcheng.jpg',
	url: "wenzhang/6.html"
}]

var wenzhangBox = document.getElementsByClassName('wenzhangBox')[0]
for (var j = 0; j < wenzhangList.length; j++) {
	wenzhangBox.innerHTML +=
		'<a href="' + wenzhangList[j].url +
		'"><div class="aui-flex"><div class="aui-flex-spot-img"><img src="' + wenzhangList[j].img +
		'" alt=""></div><div class="aui-flex-box"><h2>' + wenzhangList[j].title + '<span style="display:' + (
			wenzhangList[j].jingpin ? 'inline-block' : 'none') + ';">精品</span></h2><p>' +
		wenzhangList[j].text + '</p><span>' + wenzhangList[j].name + '</span></div></div></a>'
}


//资讯广场
var zixun = document.getElementsByClassName('zixun')[0]
zixun.onclick = function() {
	// var broser = window.navigator.userAgent.toLowerCase();
	// if (broser.match(/MicroMessenger/i) == 'micromessenger') {
	// alert('请选择"在浏览器打开",再进入"资讯广场"')
	// } else {
	//window.location.href = 'https://static-64bbfebf-7fd8-4fcb-9faf-c05bd62be4ed.bspapp.com/#/';
	// window.location.href = 'https://static-mp-6f74070b-8ba1-480f-b0d7-2d88c0be884c.next.bspapp.com/#/';
	window.location.href = 'wenzhang/zixun/index.html'
	// }
}